<%@ page contentType="text/html;charset=utf-8" pageEncoding="UTF-8"%>
<%@include file="/common/common.jsp" %>
<%@page import="com.jmx.yp.common.SysConstants"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>

<html>
	<head>
		<title>会员管理_新增会员</title>
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/skin.css">
		<link href="${pageContext.request.contextPath}/admin/css/photo.css" rel="stylesheet" type="text/css" >
		<link href="${pageContext.request.contextPath}/css/jquery.alerts.css" rel="stylesheet" type="text/css" media="screen">		
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery/jquery-1.4.2.min.js"></script>
		<script src="${pageContext.request.contextPath}/js/jquery/jquery.ui.draggable.js" type="text/javascript"></script>
		<script src="${pageContext.request.contextPath}/js/jquery/jquery.alerts.js" type="text/javascript"></script>
		<script src="${pageContext.request.contextPath}/js/tools.js" type="text/javascript"></script>
		<script src="${pageContext.request.contextPath}/admin/js/photo.js" type="text/javascript"></script>
		<script src="${pageContext.request.contextPath}/js/modal/popup.js"  type="text/javascript"></script>
		<script src="${pageContext.request.contextPath}/js/modal/popupclass.js"  type="text/javascript"></script>
		<style type="text/css">
			<!--
			body {
				margin-left: 0px;
				margin-top: 0px;
				margin-right: 0px;
				margin-bottom: 0px;
			}
			.STYLE1 {font-size: 12px}
			.STYLE3 {font-size: 12px; font-weight: bold; }
			.STYLE4 {
				color: #03515d;
				font-size: 12px;
			}
			-->
		</style>
		<script type="text/javascript">
			function onReturn(){
				location.href = "${pageContext.request.contextPath}/admin/member/gradeList.action";
			}

			function onAdd(){
				//验证
				if(gradeForm.name.value.trim() == ""){
					jAlert('warning', '级别名称不能为空!', '操作警告');
					gradeForm.name.focus();
					return false;
				}else{
					if(!checkedTextArea(gradeForm.name.value.trim(), 50, "级别名称")){
						categoryForm.name.focus();
						return false;
					}
				}

				if(gradeForm.category.value == "0"){
					jAlert('warning', '请选择所属的会员类别!', '操作警告');
					return false;
				}

				if(gradeForm.description.value.trim() != ""){
					if(!checkedTextArea(gradeForm.description.value.trim(), 1000, "级别描述")){
						gradeForm.description.focus();
						return false;
					}
				}

				//提交处理
				var url = "addGrade.action";
				
				var params = {						
						name:$('#name').attr('value'),
						categoryId:$('#category').val(),
						description:$('#description').val()
					};
				$.post(url, params, callback, "json");
			}

			function callback(data){				
				if(data == "success"){
					onReset();
					jAlert('success', '新增会员级别成功!', '操作提示');
				}else
					jAlert('error', data, '操作提示');				
			}

			function onReset(){
				gradeForm.name.value = "";
				gradeForm.category.value = "0";
				gradeForm.description.value = "";
			}

			function showDetail(sels){
				var pInfo = document.getElementById("personInfo");
				var eInfo = document.getElementById("enterpriseInfo");
				
				if(sels.value == "1"){
					pInfo.style.display = "block";
					eInfo.style.display = "none";
				}else{
					pInfo.style.display = "none";
					eInfo.style.display = "block";
				}
			}

			//查询会员所属区域
			function searchArea(){
				var url = "${pageContext.request.contextPath}/admin/member/initSearchArea.action";
				ShowIframe('区域', url, 800, 450);
			}
		</script>
	</head>
	
	<body>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="30" background="${pageContext.request.contextPath}/admin/images/main/tab_05.gif">
					<!-- 导航条 -->
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
			      		<tr>
			        		<td width="12" height="30"><img src="${pageContext.request.contextPath}/admin/images/main/left-top-right.gif" width="12" height="30" /></td>
			       			<td>
			       				<table width="100%" border="0" cellspacing="0" cellpadding="0">
			          				<tr>
			            				<td width="46%" valign="middle">
			            					<table width="100%" border="0" cellspacing="0" cellpadding="0">
			              						<tr>
			                						<td width="5%"><div align="center"><img src="${pageContext.request.contextPath}/admin/images/main/tb.gif" width="16" height="16" /></div></td>
			                						<td width="95%" class="STYLE1"><span class="STYLE3">你当前的位置</span>：[会员管理]-[新增会员]</td>
			              						</tr>
			            					</table>
			            				</td>			            				
			          				</tr>
			        			</table>
			        		</td>
			        		<td width="16"><img src="${pageContext.request.contextPath}/admin/images/main/nav-right-bg.gif" width="16" height="30" /></td>
			      		</tr>			      		
			    	</table>
			    </td>
			</tr>
			
			<!-- 修改内容 -->
			  <tr>
			   <td>
			   		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			      		<tr>
			        		<td width="3">&nbsp;</td>
			  	  	 		<td><table width="100%" height="30" border="0" bgcolor="b5d6e6" cellpadding="0" cellspacing="1" class="nowtable">
              						<tr>
                						<td class="left_bt2">&nbsp;&nbsp;&nbsp;&nbsp;会员基本信息设置</td>
              						</tr>
            		 			</table>
            	 			</td>
            	 			<td width="3" >&nbsp;</td>
            	 		</tr>
            	 	</table>
            	 </td>
			  </tr>
			  
			  <s:form name="memberForm" id="memberForm" action="addMember" method="post" namespace="/member" >
			  <tr>
			     <td>
			   		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			      		<tr>
			        		<td width="3">&nbsp;</td>
			  	  	 		<td><table width="100%" height="30" border="0" bgcolor="b5d6e6" cellpadding="0" cellspacing="0" class="nowtable">
              						 <tr>
                						<td width="20%" height="30" align="right" bgcolor="#f2f2f2" class="left_txt2">会员类型：</td>
                						<td width="3%" bgcolor="#f2f2f2">&nbsp;</td>
                						<td width="32%" height="30" bgcolor="#f2f2f2">  
                							<s:select list="memberTypeList" name="memberType" id="memberType" listKey="PARA_VALUE" listValue="PARA_CODE" onclick="showDetail(this)"/>
                						</td>
                						<td width="45%" height="30" bgcolor="#f2f2f2" class="left_txt">（<font color="red">必填项</font>）</td>
              						 </tr>    						 
              						 <tr>
                						<td height="30" align="right" class="left_txt2">所属区域</td>
                						<td>&nbsp;</td>
                						<td height="30">
                							<s:if test="jmxManager">
                							<input type="text" id="areaName" name="areaName" size="30" readonly />
                							<input type="hidden" id="areaId" name="areaId" />
                							<img src="${pageContext.request.contextPath}/admin/images/Item.Search.gif" title="查询区域" onclick="searchArea();" >
                							</s:if>
                							<s:else>
                								<s:select list="areaList" name="areaId" id="areaId" listKey="SERIALID" listValue="AREA_NAME"/>
                							</s:else>
                						</td>
                						<td height="30" class="left_txt">（<font color="red">必填项</font>）</td>
              						</tr>
              						<tr>
                						<td width="20%" height="30" align="right" bgcolor="#f2f2f2" class="left_txt2">会员帐户：</td>
                						<td width="3%" bgcolor="#f2f2f2">&nbsp;</td>
                						<td width="32%" height="30" bgcolor="#f2f2f2">
                							<input type="text" id="memberName" name="memberName" size="30" maxlength="50"/>
                						</td>
                						<td width="45%" height="30" bgcolor="#f2f2f2" class="left_txt">（<font color="red">必填项</font>）</td>
              					    </tr>
              					    <tr>
                						<td height="30" align="right" class="left_txt2">密码：</td>
                						<td>&nbsp;</td>
                						<td height="30">
                							<input type="password" name="pass" id="pass" size="32"/>
                						</td>
                						<td height="30" class="left_txt">（<font color="red">必填项</font>）</td>
              						</tr>
              						<tr>
                						<td width="20%" height="30" align="right" bgcolor="#f2f2f2" class="left_txt2">确认密码：</td>
                						<td width="3%" bgcolor="#f2f2f2">&nbsp;</td>
                						<td width="32%" height="30" bgcolor="#f2f2f2">
                							<input type="password" id="comfirmPass" name="comfirmPass" size="32" maxlength="50"/>
                						</td>
                						<td width="45%" height="30" bgcolor="#f2f2f2" class="left_txt">（<font color="red">必填项</font>）</td>
              					    </tr>
              					    <tr>
                						<td height="30" align="right" class="left_txt2">用户昵称：</td>
                						<td>&nbsp;</td>
                						<td height="30">
                							<input type="text" name="nickName" id="nickName" size="30"/>
                						</td>
                						<td height="30" class="left_txt">（<font color="red">必填项</font>）</td>
              						</tr>            				         						
              						<tr>
                						<td width="20%" height="30" align="right" bgcolor="#f2f2f2" class="left_txt2">电子邮箱：</td>
                						<td width="3%" bgcolor="#f2f2f2">&nbsp;</td>
                						<td width="32%" height="30" bgcolor="#f2f2f2">
                							<input type="text" id="email" name="email" size="30" maxlength="50"/>
                						</td>
                						<td width="45%" height="30" bgcolor="#f2f2f2" class="left_txt">（<font color="red">必填项</font>）</td>
              					    </tr>
              					    
              					    
              					    <tr>
                						<td colspan="4" class="left_txt_no_height" bgcolor="#ffffff" id="personInfo">
                							<fieldset>
												<legend><font color="#333333">个人详情资料</font></legend>
												<div class="edit_message">
            										<div class="edit_photo">
               					 						<div class="photo_prev">
			                    							<div class="photo_prev_head">  <!-- 默认一个图片 -->
			                        							<img id="img_head_select" src="${pageContext.request.contextPath}/admin/images/photo/pic_head_25.gif" width="96" height="96" /></div>
			            									</div>
			            									<div class="photo_browse">
			            										<input type ="hidden" id="hiddenphototypeid" value ="0" />
			            										<input type ="hidden" id ="hinddenimgindex" value ="0" />
			
			           	 										<!--上传状态开始-->
			            										<!--上传状态结束-->
			                									<p class="go_choice2">您可以在下方选择自己喜欢的头像：</p>
			               										<span class="gray_b3">(更新后的头像将稍后显示在其它页面)</span>
			                									<div class="clear"></div>
			                									<div class="all_photo_title">
				                								<div class="all_photo_title_mo" id="head_type_0" onmouseover="javascript:ShowHeadPhotoType(0)" >酷男</div>
			                    								<div class="all_photo_title_other" id="head_type_1" onmouseover ="javascript:ShowHeadPhotoType(1)">靓女</div>
			                    								<div class="all_photo_title_other" id="head_type_2" onmouseover ="javascript:ShowHeadPhotoType(2)">可爱动物</div>
			                    								<div class="all_photo_title_other" id="head_type_3" onmouseover ="javascript:ShowHeadPhotoType(3)">个性</div>
			                								</div>			                								
			                								<div class="clear"></div>
			              									<div class="all_photo" id="all_photo_0">
			                									<div id="head_index_1" onmouseover="mouseoverchangeclass(1)" onmouseout="mouseoutchangeclass(1)"><a onclick="javascript:ChangeClientHeadPhoto(1)" style="cursor:pointer"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_1_s.gif"/></a></div>
			                									<div id="head_index_2" onmouseover="mouseoverchangeclass(2)" onmouseout="mouseoutchangeclass(2)"><a onclick="javascript:ChangeClientHeadPhoto(2)" style="cursor:pointer"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_2_s.gif"/></a></div>
			                									<div id="head_index_3" onmouseover="mouseoverchangeclass(3)" onmouseout="mouseoutchangeclass(3)"><a onclick="javascript:ChangeClientHeadPhoto(3)" style="cursor:pointer"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_3_s.gif"/></a></div>	
			                									<div id="head_index_4" onmouseover="mouseoverchangeclass(4)" onmouseout="mouseoutchangeclass(4)"><a onclick="javascript:ChangeClientHeadPhoto(4)" style="cursor:pointer"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_4_s.gif"/></a></div>
			                									<div id="head_index_5" onmouseover="mouseoverchangeclass(5)" onmouseout="mouseoutchangeclass(5)"><a onclick="javascript:ChangeClientHeadPhoto(5)" style="cursor:pointer"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_5_s.gif"/></a></div>
			                									<div id="head_index_6" onmouseover="mouseoverchangeclass(6)" onmouseout="mouseoutchangeclass(6)"><a onclick="javascript:ChangeClientHeadPhoto(6)" style="cursor:pointer"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_6_s.gif"/></a></div>
			                									<div id="head_index_7" onmouseover="mouseoverchangeclass(7)" onmouseout="mouseoutchangeclass(7)"><a onclick="javascript:ChangeClientHeadPhoto(7)" style="cursor:pointer"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_7_s.gif"/></a></div>
			                									<div id="head_index_8" onmouseover="mouseoverchangeclass(8)" onmouseout="mouseoutchangeclass(8)"><a onclick="javascript:ChangeClientHeadPhoto(8)" style="cursor:pointer"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_8_s.gif"/></a></div>
			                									<div id="head_index_9" onmouseover="mouseoverchangeclass(9)" onmouseout="mouseoutchangeclass(9)"><a onclick="javascript:ChangeClientHeadPhoto(9)" style="cursor:pointer"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_9_s.gif"/></a></div>
			                									<div id="head_index_10" onmouseover="mouseoverchangeclass(10)" onmouseout="mouseoutchangeclass(10)"><a onclick="javascript:ChangeClientHeadPhoto(10)" style="cursor:pointer"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_10_s.gif"/></a></div>
			              									</div>
			              									<div class="all_photo" id="all_photo_1" style ="display :none ">
			                									<div id="head_index_11" onmouseover="mouseoverchangeclass(11)" onmouseout="mouseoutchangeclass(11)"><a onclick="javascript:ChangeClientHeadPhoto(11)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_11_s.gif"/></a></div>
			                									<div id="head_index_12" onmouseover="mouseoverchangeclass(12)" onmouseout="mouseoutchangeclass(12)"><a onclick="javascript:ChangeClientHeadPhoto(12)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_12_s.gif"/></a></div>
			                									<div id="head_index_13" onmouseover="mouseoverchangeclass(13)" onmouseout="mouseoutchangeclass(13)"><a onclick="javascript:ChangeClientHeadPhoto(13)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_13_s.gif"/></a></div>
			                									<div id="head_index_14" onmouseover="mouseoverchangeclass(14)" onmouseout="mouseoutchangeclass(14)"><a onclick="javascript:ChangeClientHeadPhoto(14)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_14_s.gif"/></a></div>
			                									<div id="head_index_15" onmouseover="mouseoverchangeclass(15)" onmouseout="mouseoutchangeclass(15)"><a onclick="javascript:ChangeClientHeadPhoto(15)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_15_s.gif"/></a></div>
			                									<div id="head_index_16" onmouseover="mouseoverchangeclass(16)" onmouseout="mouseoutchangeclass(16)"><a onclick="javascript:ChangeClientHeadPhoto(16)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_16_s.gif"/></a></div>
			                									<div id="head_index_17" onmouseover="mouseoverchangeclass(17)" onmouseout="mouseoutchangeclass(17)"><a onclick="javascript:ChangeClientHeadPhoto(17)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_17_s.gif"/></a></div>
												                <div id="head_index_18" onmouseover="mouseoverchangeclass(18)" onmouseout="mouseoutchangeclass(18)"><a onclick="javascript:ChangeClientHeadPhoto(18)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_18_s.gif"/></a></div>
			                									<div id="head_index_19" onmouseover="mouseoverchangeclass(19)" onmouseout="mouseoutchangeclass(19)"><a onclick="javascript:ChangeClientHeadPhoto(19)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_19_s.gif"/></a></div>
			                									<div id="head_index_20" onmouseover="mouseoverchangeclass(20)" onmouseout="mouseoutchangeclass(20)"><a onclick="javascript:ChangeClientHeadPhoto(20)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_20_s.gif"/></a></div>
			              									</div>
			              									<div class="all_photo" id="all_photo_2" style ="display :none ">
			                									<div id="head_index_21" onmouseover="mouseoverchangeclass(21)" onmouseout="mouseoutchangeclass(21)"><a onclick="javascript:ChangeClientHeadPhoto(21)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_21_s.gif"/></a></div>
			                									<div id="head_index_22" onmouseover="mouseoverchangeclass(22)" onmouseout="mouseoutchangeclass(22)"><a onclick="javascript:ChangeClientHeadPhoto(22)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_22_s.gif"/></a></div>
			                									<div id="head_index_23" onmouseover="mouseoverchangeclass(23)" onmouseout="mouseoutchangeclass(23)"><a onclick="javascript:ChangeClientHeadPhoto(23)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_23_s.gif"/></a></div>
			                									<div id="head_index_24" onmouseover="mouseoverchangeclass(24)" onmouseout="mouseoutchangeclass(24)"><a onclick="javascript:ChangeClientHeadPhoto(24)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_24_s.gif"/></a></div>
			    									            <div id="head_index_25" onmouseover="mouseoverchangeclass(25)" onmouseout="mouseoutchangeclass(25)"><a onclick="javascript:ChangeClientHeadPhoto(25)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_25_s.gif"/></a></div>
			                									<div id="head_index_26" onmouseover="mouseoverchangeclass(26)" onmouseout="mouseoutchangeclass(26)"><a onclick="javascript:ChangeClientHeadPhoto(26)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_26_s.gif"/></a></div>
			                									<div id="head_index_27" onmouseover="mouseoverchangeclass(27)" onmouseout="mouseoutchangeclass(27)"><a onclick="javascript:ChangeClientHeadPhoto(27)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_27_s.gif"/></a></div>
			                									<div id="head_index_28" onmouseover="mouseoverchangeclass(28)" onmouseout="mouseoutchangeclass(28)"><a onclick="javascript:ChangeClientHeadPhoto(28)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_28_s.gif"/></a></div>
			                									<div id="head_index_29" onmouseover="mouseoverchangeclass(29)" onmouseout="mouseoutchangeclass(29)"><a onclick="javascript:ChangeClientHeadPhoto(29)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_29_s.gif"/></a></div>
			                									<div id="head_index_30" onmouseover="mouseoverchangeclass(30)" onmouseout="mouseoutchangeclass(30)"><a onclick="javascript:ChangeClientHeadPhoto(30)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_30_s.gif"/></a></div>
			              									</div>
			              									<div class="all_photo" id="all_photo_3" style ="display :none ">
			                									<div id="head_index_31" onmouseover="mouseoverchangeclass(31)" onmouseout="mouseoutchangeclass(31)"><a onclick="javascript:ChangeClientHeadPhoto(31)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_31_s.gif"/></a></div>
												                <div id="head_index_32" onmouseover="mouseoverchangeclass(32)" onmouseout="mouseoutchangeclass(32)"><a onclick="javascript:ChangeClientHeadPhoto(32)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_32_s.gif"/></a></div>
			                									<div id="head_index_33" onmouseover="mouseoverchangeclass(33)" onmouseout="mouseoutchangeclass(33)"><a onclick="javascript:ChangeClientHeadPhoto(33)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_33_s.gif"/></a></div>
			                									<div id="head_index_34" onmouseover="mouseoverchangeclass(34)" onmouseout="mouseoutchangeclass(34)"><a onclick="javascript:ChangeClientHeadPhoto(34)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_34_s.gif"/></a></div>
			                									<div id="head_index_35" onmouseover="mouseoverchangeclass(35)" onmouseout="mouseoutchangeclass(35)"><a onclick="javascript:ChangeClientHeadPhoto(35)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_35_s.gif"/></a></div>
			                									<div id="head_index_36" onmouseover="mouseoverchangeclass(36)" onmouseout="mouseoutchangeclass(36)"><a onclick="javascript:ChangeClientHeadPhoto(36)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_36_s.gif"/></a></div>
			                									<div id="head_index_37" onmouseover="mouseoverchangeclass(37)" onmouseout="mouseoutchangeclass(37)"><a onclick="javascript:ChangeClientHeadPhoto(37)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_37_s.gif"/></a></div>
			                									<div id="head_index_38" onmouseover="mouseoverchangeclass(38)" onmouseout="mouseoutchangeclass(38)"><a onclick="javascript:ChangeClientHeadPhoto(38)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_38_s.gif"/></a></div>
			                									<div id="head_index_39" onmouseover="mouseoverchangeclass(39)" onmouseout="mouseoutchangeclass(39)"><a onclick="javascript:ChangeClientHeadPhoto(39)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_39_s.gif"/></a></div>
			                									<div id="head_index_40" onmouseover="mouseoverchangeclass(40)" onmouseout="mouseoutchangeclass(40)"><a onclick="javascript:ChangeClientHeadPhoto(40)"><img src="${pageContext.request.contextPath}/admin/images/photo/pic_head_40_s.gif"/></a></div>
			              									</div>
			              									<!-- <input onclick="Hid(1); __doPostBack('btnSaveHead','')" name="btnSaveHead" type="button" id="btnSaveHead" class="save_photo" disabled="disabled" value="保存头像" /> -->
			              									<input type="hidden" name="hd_value" id="hd_value" />
			                								<div class="total_ok_pic_green" id="div_update_state" style="display:none">头像已保存！</div>
			                								<div class="clear"></div>
			                								<p class="go_choice">或从您的电脑中上传图片作为头像：<span class="gray_b3">(建议尺寸96*96像素，300k以内)</span></p>
			            									<div class="browse_mypic">
			               							 			<input type="file" name="Myfile" id="Myfile" size="36" maxlength="30" onchange="changeSrc(this)" onclick="div_hidden('div_update_state');" onkeydown="chkonkeydown(event);" style="height:21px; width:290px; font-size:12px; padding-top:3px; float:left;" />
			                       								<input type="hidden" name="hid_opt" id="hid_opt" />
			 	                   								<!-- <input onclick="if (!Chkfile()) return false; __doPostBack('btnUpload','')" name="btnUpload" type="button" id="btnUpload" class="browse_button" Height="20px" value="上传" disabled="disabled" />-->
			                    								<div class="loading" name="div_upload_state" id="div_upload_state" style="display:none;">图片大小超过300k</div>
			                   		 							<div class="total_ok_pic_green2" id="headsave2" style="display:none">头像已保存！</div>
			                    								<div class="loading" id="headsave3" style="display:none"><img src="${pageContext.request.contextPath}/admin/images/photo/loading.gif" title="上传状态中" />
									    							<p>上传中...</p>
						        								</div>
			                									<div class="notice_write1" id="headsave4" style="display:none">图片大小超过300k</div>
			                									<img id="imghidden" src="about:blank" style="width:0;height:0" />
			          										</div>
          													<div class="clear"></div>
        												</div>
        												<div class="clear"></div>
        												</div>
          											</div>
          											
          											<!-- 输入编辑信息 -->
          											<DIV class=edit_message1>
          												<DIV class=mesage_list>
          													<DIV class=list_title>姓：</DIV>
          													<DIV class=list_edit><input type="text" name="firstName" id="firstName" maxLength="50" />
          														&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          														<SPAN>名：<input type="text" name="lastName" id="lastName" maxLength="50" /></SPAN>
          														&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          														<SPAN>（<font color="red">必填项</font>）</SPAN>
          													</DIV>
          													<DIV class=empty_box_left></DIV>
          												</DIV>
          												<DIV class=mesage_list>
          													<DIV class=list_title>性别：</DIV>
          													<DIV class="list_edit">
          														<input type="radio" name="sex" id="sex1" value="<%=SysConstants.SEX_MAN%>" checked>男士&nbsp;&nbsp;
                												<input type="radio" name="sex" id="sex2" value="<%=SysConstants.SEX_WOMAN%>" >女士
          													</DIV>
          													<DIV class=empty_box_left></DIV>
          												</DIV>
          												<DIV class=mesage_list>
          													<DIV class=list_title>移动电话：</DIV>
          													<DIV class="list_edit">
          														<input type="text" id="mobileCn" name="mobileCn" style="width:32px;" title="国家编号" maxlength="10" onkeyup="value=value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" />
					                							-
					                							<input type="text" id="mobileArea" name="mobileArea" size="4" title="地区编号" maxlength="10" onkeyup="value=value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" />
					                							-
					                							<input type="text" id="mobile" name="mobile" size="10" title="手机号码" maxlength="50" onkeyup="value=value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" />
          													</DIV>
          													<DIV class=empty_box_left></DIV>
          												</DIV>
          												<DIV class=mesage_list>
          													<DIV class=list_title>联系电话：</DIV>
          													<DIV class="list_edit">
          														<input type="text" id="telCn" name="telCn" style="width:32px;" title="国家编号" maxlength="10" onkeyup="value=value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" />
					                							-
					                							<input type="text" id="telArea" name="telArea" size="4" title="地区编号" maxlength="10" onkeyup="value=value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" />
					                							-
					                							<input type="text" id="tel" name="tel" size="10" title="电话号码" maxlength="50" onkeyup="value=value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" />
          													</DIV>
          													<DIV class=empty_box_left></DIV>
          												</DIV>
          												<DIV class="mesage_list">
          													<DIV class=list_title>生日：</DIV>
          													<DIV class="list_edit">
          														<select name="birthYear" id="birthYear">                								
					                								<c:forEach var="i" begin="1950" end="2010" step="1">
					                									<option value="${i}">${i}</option>
					                								</c:forEach>                								
					                							</select>
					                							年
					                							<select name="birthMonth" id="birthMonth">    								
					                								<c:forEach var="i" begin="1" end="12" step="1">
					                									<option value="${i}">${i}</option>
					                								</c:forEach>                								
					                							</select>
					                							月
					                							<select name="birthDay" id="birthDay">                								
					                								<c:forEach var="i" begin="1" end="31" step="1">
					                									<option value="${i}">${i}</option>
					                								</c:forEach>                								
					                							</select>
					                							日
          													</DIV>
          													<DIV class=empty_box_left></DIV>
          												</DIV>
	          											<DIV class="mesage_list">
	          												<DIV class=list_title>最高学历：</DIV>
	          												<DIV class="list_edit">
	          													<s:select list="educationMap" name="education" id="education" listKey="key" listValue="value"/>
	          												</DIV>
	          												<DIV class=empty_box_left></DIV>
	          											</DIV>
	          											<DIV class="mesage_list">
	          												<DIV class=list_title>邮政编码：</DIV>
	          												<DIV class="list_edit">
	          													<input type="text" id=postalcode name="postalcode" size="30" maxlength="10"/>
	          												</DIV>
	          												<DIV class=empty_box_left></DIV>
	          											</DIV>
	          											<DIV class="mesage_list">
	          												<DIV class=list_title>通信地址：</DIV>
	          												<DIV class="list_edit">
	          													<input type="text" id="address" name="address" size="30"  maxlength="500"/>
	          												</DIV>
	          												<DIV class=empty_box_left></DIV>
	          											</DIV>
	          											<DIV class="mesage_list">
	          												<DIV class=list_title>OICQ：</DIV>
	          												<DIV class="list_edit">
	          													<input type="text" id="qicq" name="qicq" size="30" maxlength="50"/>
	          												</DIV>
	          												<DIV class=empty_box_left></DIV>
	          											</DIV>
	          											<DIV class="mesage_list">
	          												<DIV class=list_title>MSN：</DIV>
	          												<DIV class="list_edit">
	          													<input type="text" id="msn" name="msn" size="30" maxlength="50"/>
	          												</DIV>
	          												<DIV class=empty_box_left></DIV>
	          											</DIV>
	          											<DIV class="mesage_list">
	          												<DIV class=list_title>YAHOOMSG：</DIV>
	          												<DIV class="list_edit">
	          													<input type="text" id="yahoomsg" name="yahoomsg" size="30" maxlength="50"/>
	          												</DIV>
	          												<DIV class=empty_box_left></DIV>
	          											</DIV>
	          											<DIV class="mesage_list">
	          												<DIV class=list_title>SKPYE：</DIV>
	          												<DIV class="list_edit">
	          													<input type="text" id="skpye" name="skpye" size="30" maxlength="50"/>
	          												</DIV>
	          												<DIV class=empty_box_left></DIV>
	          											</DIV>
	          											<DIV class="mesage_list">
	          												<DIV class=list_title>GTALK：</DIV>
	          												<DIV class="list_edit">
	          													<input type="text" id="gtalk" name="gtalk" size="30" maxlength="50"/>
	          												</DIV>
	          												<DIV class=empty_box_left></DIV>
	          											</DIV>
	          											<DIV class="mesage_list">
	          												<DIV class=list_title>个人签名：</DIV>
	          												<DIV class="list_edit">
	          													<textarea class="text_intro" id="signature" name="signature"></textarea>
	          												</DIV>
	          												<DIV class=empty_box_left></DIV>
	          											</DIV>
	          											<DIV class="mesage_list">
	          												<DIV class=list_title>简要说明：</DIV>
	          												<DIV class="list_edit">
	          													<textarea class="text_intro" id="introduction" name="introduction"></textarea>
	          												</DIV>
	          												<DIV class=empty_box_left></DIV>
	          											</DIV>
          											<!-- 
          											<DIV class="mesage_list">
          												<DIV class=list_title>生日：</DIV>
          												<DIV class="list_edit"></DIV>
          												<DIV class=empty_box_left></DIV>
          											</DIV>
          											 -->
          											 </DIV>
												</fieldset>
                						</td>
              						</tr>
              						
              						              					    
              					    <tr>
                						<td colspan="4" class="left_txt" bgcolor="#ffffff" id="enterpriseInfo" style="display:none;">
                							<fieldset>
												<legend><font color="#333333">企业详情资料</font></legend>
													<DIV class=edit_message1>
														<DIV class="mesage_list">
	          												<DIV class=list_title>公司名称：</DIV>
	          												<DIV class="list_edit">
	          													<input type="text" id="cmp_name" name="cmp_name" maxlength="100" size="30"/>
	          													&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          														<SPAN>（<font color="red">必填项</font>）</SPAN>
	          												</DIV>
	          												<DIV class=empty_box_left></DIV>
	          											</DIV>
	          											<DIV class="mesage_list">
	          												<DIV class=list_title>公司类型：</DIV>
	          												<DIV class="list_edit">
	          													<s:select list="companyTypeList" name="companyType" id="companyType" listKey="PARA_VALUE" listValue="PARA_CODE" />
	          												</DIV>
	          												<DIV class=empty_box_left></DIV>
	          											</DIV>
	          											<DIV class="mesage_list">
	          												<DIV class=list_title>公司规模：</DIV>
	          												<DIV class="list_edit">
	          													<s:select list="companySizeList" name="companySize" id="companySize" listKey="PARA_VALUE" listValue="PARA_CODE" />
	          												</DIV>
	          												<DIV class=empty_box_left></DIV>
	          											</DIV>
	          											<DIV class="mesage_list">
	          												<DIV class=list_title>行业：</DIV>
	          												<DIV class="list_edit">
	          													<s:select list="industryList" name="industry" id="industry" listKey="PARA_VALUE" listValue="PARA_CODE" />
	          												</DIV>
	          												<DIV class=empty_box_left></DIV>
	          											</DIV>
	          											<DIV class=mesage_list>
          													<DIV class=list_title>联系人姓：</DIV>
          													<DIV class=list_edit><input type="text" name="cotFirstName" id="cotFirstName" maxLength="50" />
          														&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          														<SPAN>联系人名：<input type="text" name="cotLastName" id="cotLastName" maxLength="50" /></SPAN>
          														&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          														<SPAN>（<font color="red">必填项</font>）</SPAN>
          													</DIV>
          													<DIV class=empty_box_left></DIV>
          												</DIV>
          												<DIV class=mesage_list>
          													<DIV class=list_title>联系电话：</DIV>
          													<DIV class="list_edit">
          														<input type="text" id="cmpTelCn" name="cmpTelCn" style="width:32px;" title="国家编号" maxlength="10" onkeyup="value=value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" />
					                							-
					                							<input type="text" id="cmpTelArea" name="cmpTelArea" size="4" title="地区编号" maxlength="10" onkeyup="value=value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" />
					                							-
					                							<input type="text" id="cmpTel" name="cmpTel" size="10" title="电话号码" maxlength="50" onkeyup="value=value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" />
					                							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          														<SPAN>（<font color="red">必填项</font>）</SPAN>
          													</DIV>
          													<DIV class=empty_box_left></DIV>
          												</DIV>
          												<DIV class="mesage_list">
	          												<DIV class=list_title>公司地址：</DIV>
	          												<DIV class="list_edit">
	          													<input type="text" name="cmpAddress" id="cmpAddress" maxLength="500" size="30"/>
	          												</DIV>
	          												<DIV class=empty_box_left></DIV>
	          											</DIV>
	          											<DIV class="mesage_list">
	          												<DIV class=list_title>邮政编码：</DIV>
	          												<DIV class="list_edit">
	          													<input type="text" name="cmpPostalcode" id="cmpPostalcode" maxLength="10" />
	          												</DIV>
	          												<DIV class=empty_box_left></DIV>
	          											</DIV>
	          											<DIV class="mesage_list">
	          												<DIV class=list_title>公司简介：</DIV>
	          												<DIV class="list_edit">
	          													<textarea class="text_intro" id="cmpNotes" name="cmpNotes"></textarea>
	          												</DIV>
	          												<DIV class=empty_box_left></DIV>
	          											</DIV>
	          										</DIV>
												</fieldset>
                						</td>
              						</tr>
              						 
            		 			</table>
            	 			</td>
            	 			<td width="3" >&nbsp;</td>
            	 		</tr>
            	 	</table>
            	 </td>
			  </tr>
			  
			  <tr>
              	  <td height="30">&nbsp;</td>
              </tr>
              <tr>
                  <td align="center">
              	      <input type=button value="&nbsp;保&nbsp;存&nbsp;" name="B1" onclick="onAdd()" />
              		  &nbsp;&nbsp;
              		  <input type="reset" value="&nbsp;清&nbsp;空&nbsp;" name="B12" />
              		  &nbsp;&nbsp;
              		  <input type="button" value="&nbsp;返&nbsp;回&nbsp;" name="B2" onclick="onReturn()"/>
              	  </td>
     	      </tr>     	      
			 </s:form>
		</table>
	</body>
</html>